package com.drop.service.impl;

import java.util.List;

import javax.transaction.Transactional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.drop.dao.OrderShowDao;
import com.drop.entity.Order;
import com.drop.service.OrderShowService;
@Service
@Transactional
public class OrderShowServiceImpl implements OrderShowService{
	@Autowired
	private OrderShowDao orsd;
	@Override
	public List<Order> getOrder(int userid, int state) {
		// TODO Auto-generated method stub
		return orsd.getOrder(userid, state);
	}
	@Override
	public List<Order> getAllorder(int userid) {
		// TODO Auto-generated method stub
		return orsd.getAllorder(userid);
	}
	@Override
	public Order getOrderById(int orderid) {
		// TODO Auto-generated method stub
		return orsd.getOrderById(orderid);
	}

}
